-- GENERATED SPELL FOR [Crypt Stalker] --


function spell0_8555(pUnit, Event) --@Crypt Scarabs,n/a--
pUnit:FullCastSpellOnTarget(31600,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8555', 2000, 1)
end

function Sorts_8555(pUnit, Event)
local choix_sorts_8555 = math.random(0, 0)
if choix_sorts_8555 == 0 then
pUnit:RegisterEvent('spell0_8555', 1, 1)
end
end

function mob8555_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8555', math.random(1500, 3000), 1)
end

function mob8555_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8555_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8555_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8555, 1, 'mob8555_Action')
RegisterUnitEvent(8555, 2, 'mob8555_Leave')
RegisterUnitEvent(8555, 3, 'mob8555_Kill')
RegisterUnitEvent(8555, 4, 'mob8555_Die')
